import { getCurrentInstance, ref, nextTick } from 'vue';
const dialog = ref(null);
const showDialog = ref(false);
function openDialog(row) {
	console.log(66666666);
	showDialog.value = true;
	nextTick(() => {
		dialog.value.open(row);
	});
}
//关闭dialog
function onCloseDialog(bool,getList) {
	console.log(bool,getList);
	showDialog.value = false;
	bool &&getList&& getList();
}

export default {
	dialog,showDialog,openDialog,onCloseDialog
}